package cn.juque.common.utils.dto;

import lombok.Data;

import java.util.Map;

/**
 * @author nuoka
 * @version 1.0.0
 * <li>IntelliJ IDEA</li>
 * <li>cn.juque.cn.juque.common.utils.dto</li>
 * @date 2021/7/27 21:55
 **/
@Data
public class GetDTO {

    private String url;

    private Map<String, String> headers;

    private Map<String, Object> param;

    private String charset;

    private String dateFormat;

    public GetDTO(String url, Map<String, String> headers, Map<String, Object> param, String charset, String dateFormat) {
        this(url, headers, param, charset);
        this.dateFormat = dateFormat;
    }

    public GetDTO(String url, Map<String, String> headers, Map<String, Object> param, String charset) {
        this(url, param, charset);
        this.headers = headers;
    }

    public GetDTO(String url, Map<String, Object> param, String charset) {
        this.url = url;
        this.param = param;
        this.charset = charset;
    }
}
